// 导入学生

import axios from "axios";

export default function (students) {
    return axios({
        method: "post",
        url: "/api/students",
        data: {
            students
        },
        header:{
            Authorization: localStorage.getItem("Authorization")
        }
    }).then(response => {
        return {
            result: true,
            data: response.data
        }
    }).catch(error => {
        return {
            result: false,
            msg: error.response.data.msg
        }
    })
}